package com.hlf.modules.merchant.merchant.mapper;

import com.hlf.modules.base.mapper.BaseMapper;
import com.hlf.modules.merchant.merchant.entity.Merchant;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface MerchantMapper extends BaseMapper<Merchant> {

    int insertSelective(Merchant record);

    /**
     * 根据用户id查商家
     * @param userId
     * @return
     */
    Merchant queryObjectForUserId(@Param("userId") Long userId);
}